﻿using System.Collections.Generic;

namespace WindowsPhoneMvp.Navigation
{
    internal interface INavigatingPresenter
    {
        /// <summary>
        /// Called after navigation to a view has occurred
        /// </summary>
        /// <param name="navigationData">Data about the navigation event, including parameters passed along</param>
        void OnNavigationTo(NavigationData navigationData);

        ///<summary>
        /// Called when the view is about to be navigated from
        ///</summary>
        ///<param name="isExiting">True if the navigation is going to an external destination</param>
        void OnNavigatedFrom(bool isExiting);

        ///<summary>
        /// A dictionary of navigation parameters
        ///</summary>
        IDictionary<string, string> Params { get; set; }
    }
}
